package com.zpark.transaction.service.convert;

import com.zpark.transaction.service.entity.PayOrder;
import com.zpark.transaction.api.dto.OrderResultDTO;
import com.zpark.transaction.api.dto.PayOrderDTO;
import com.zpark.transaction.service.vo.OrderConfirmVO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

@Mapper
public interface IPayOrderConvert {

    IPayOrderConvert INSTANCE = Mappers.getMapper(IPayOrderConvert.class);

    OrderResultDTO requestToDto(PayOrderDTO payOrderDTO);

    PayOrderDTO dtoToRequest(OrderResultDTO OrderResult);

    PayOrderDTO entityToDto(PayOrder entity);

    PayOrder dtoToEntity(PayOrderDTO dto);

    PayOrderDTO voToDto(OrderConfirmVO vo);

}
